import request from "@/utils/request"

// 查询分公司列表
export function queryBranchList(query) {
  return request({
    url: '/user/distribution/city/list',
    method: 'get',
    params: query
  })
}


// 查询省份列表
export function queryProviceList(query) {
  return request({
    url: '/user/system/province/list',
    method: 'get',
    params: query
  })
}


// 新增分公司信息
export function addBranchInfo(query) {
  return request({
    url: '/user/distribution/city/add',
    method: 'post',
    data: query
  })
}

// 获取分公司信息
export function queryBranchInfo(query) {
  return request({
    url: '/user/distribution/city/' + query,
    method: 'get',
    params: query
  })
}

// 修改分公司信息
export function editBranchInfo(query) {
  return request({
    url: '/user/distribution/city/edit',
    method: 'post',
    data: query
  })
}


// 删除分公司信息
export function deleteBranchInfo(query) {
  return request({
    url: '/user/distribution/city/delete?ids=' + query,
    method: 'get',
  })
}
